<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="../userPanelTemplate.xhtml"
        >
 <ui:define name="content">
     <form>
         <h:outputLink value="reportsDefault.jsf"> <h:outputText value="Back"/>  </h:outputLink>
     </form>
        <h:dataTable var="device" value="#{devicesInstalled.listDevicesInstalled}"
                 rowClasses="row1, row2" headerClass="tableHeader">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="ID"/>
                </f:facet>
                <h:outputText value="#{device.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Location"/>
                </f:facet>
                <h:outputText value="#{device.location.street.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="State"/>
                </f:facet>
                <h:outputText value="#{device.state.type}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Model"/>
                </f:facet>
                <h:outputText value="#{device.model.type}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Name"/>
                </f:facet>
                <h:outputText value="#{device.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Description"/>
                </f:facet>
                <h:outputText value="#{device.description}"/>
            </h:column>

        </h:dataTable>
     
     <form>
         <h:outputLink value="reportsDefault.jsf"> <h:outputText value="Back"/>  </h:outputLink>
     </form>
    </ui:define>
</ui:composition>